﻿<div id="easyui-accordion" class="easyui-accordion" data-options="fit:true">
    @if (ViewBag.LeftMenu != null)
    {
        int i = 0;
        List<PageEntity.ModuleDTO> tree = (List<PageEntity.ModuleDTO>)(ViewBag.LeftMenu);
        foreach (PageEntity.ModuleDTO node in tree)
        {
            <div id="easyui-accordion-item-@node.ModuleID" title="@node.ModuleName" data-options="iconCls:'@node.iconCls',selected:false"style="padding: 10px;">
                <ul>
                    @if (node.Children.Count > 0)
                    {
                        foreach (PageEntity.ModuleDTO cnode in node.Children)
                        {
                        <li class="menuitem @cnode.iconCls"><a href="javascript:createTab('@cnode.ModuleName','@cnode.Href','@cnode.iconCls')">@cnode.ModuleName</a></li>
                        }
                    }
                </ul>
            </div> 
       }
    }
</div>
